package com.ask.forMe.mapper;

import com.ask.forMe.model.entity.Score;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ScoreMapper extends BaseMapper<Score> {
    @Update("update score set score = #{score} where user_id = #{userId} and item_id = #{itemId} ")
    void updateByUserItemId(Long userId, Long itemId, Double score);
}
